package com.steshov.trainer.utils;

import android.content.Context;
import android.content.SharedPreferences;

public class Reservation {

	public static void put(Context context, String key, String value) {
		SharedPreferences savingObject = context
				.getSharedPreferences("SAVE", 0);
		SharedPreferences.Editor editor = savingObject.edit();
		editor.putString(key, value);
		editor.commit();
	}

	public static String get(Context context, String key) {
		SharedPreferences savingObject = context
				.getSharedPreferences("SAVE", 0);
		return savingObject.getString(key, Stress.GREEN.toString());//Default
	}

}
